import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
  {
    title: '用户Id',
    dataIndex: 'userId',
    width: 200,
  },
  {
    title: '标识：手机号、邮箱、 用户名、或第三方应用的唯一标识',
    dataIndex: 'account',
    width: 200,
  },
  {
    title: '密码凭证：站内的保存密码、站外的不保存或保存token）',
    dataIndex: 'password',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'domain',
    width: 200,
  },
  {
    title: '登录类型:password-密码、mobile-手机号、email-邮箱、weixin-微信、weibo-微博、qq-等等',
    dataIndex: 'accountType',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'registerIp',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'nickName',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'avatar',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'createTime',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'status',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'updateTime',
    width: 200,
  },
];

export const searchFormSchema: FormSchema[] = [];

export const formSchema: FormSchema[] = [
  {
    label: '用户Id',
    field: 'userId',
    component: 'Input',
    required: true,
  },
  {
    label: '标识：手机号、邮箱、 用户名、或第三方应用的唯一标识',
    field: 'account',
    component: 'Input',
    required: true,
  },
  {
    label: '密码凭证：站内的保存密码、站外的不保存或保存token）',
    field: 'password',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'domain',
    component: 'Input',
    required: true,
  },
  {
    label: '登录类型:password-密码、mobile-手机号、email-邮箱、weixin-微信、weibo-微博、qq-等等',
    field: 'accountType',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'registerIp',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'nickName',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'avatar',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'createTime',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'status',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'updateTime',
    component: 'Input',
    required: true,
  },
];
